import classes from './User.module.css'
import UserList from "./UserList";
import {useEffect,useState} from "react";
import {useSelector} from "react-redux";

function User(){
    const [usernum,setUsernum] = useState();
    const {userlist} = useSelector(state => state.user);
    useEffect(() => {

    })
    return(
        <div className={classes.UserBox}>
            <div className={classes.UserSum}>
                在线({userlist.length})
            </div>
            <UserList/>
        </div>
    )
}
export default User;